import {SET_CUSTOMBAR,SET_CUSTOM,SET_STATUSBAR,SET_UPLOADINFO,SET_SYSTEM} from "@/store/utils/mutations"
export default {
	namespaced:"app",
	state:{
		CustomBar:64,
		Custom:null,
		StatusBar:20,
		uploadInfo:{},
		System:"android"
	},
	mutations:{
		[SET_CUSTOMBAR](state,payload){
			state.CustomBar=payload?payload:64
		},
		[SET_CUSTOM](state,payload){
			state.Custom=payload?payload:{
				bottom: 56,
				height: 32,
				left: 278,
				right: 365,
				top: 24,
				width: 87
			}
		},
		[SET_STATUSBAR](state,payload){
			state.StatusBar=payload?payload:20
		},
		[SET_UPLOADINFO](state,payload){
			console.log(payload)
			state.uploadInfo=payload
		},
		[SET_SYSTEM](state,payload){
			console.log(payload)
			state.System=payload
		}
	}
}